package org.glut.wechat.domain;

import java.io.Serializable;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("video")
public class Video implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "video_id", type = IdType.AUTO)
    private Integer videoId;

    private Long videoUserid;

    private String videoUsername;

    // 视频在OSS中的文件名（不含前缀）
    private String videoFileName;

    // 视频封面图URL
    private String pictureUrl;

    private String videoUrl;

    // 新增前端所需字段
    private String title;         // 视频标题
    private String description;   // 视频描述
    private Integer likes = 0;    // 初始化点赞数为0
    private Integer comments = 0; // 初始化评论数为0
}